/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 *
 */

#include <iostream>

using namespace std;


class A {
public:
    static void test();
private:
    static int a;  // 申明，必须在外部被定义
    static void init();
};

int A::a = 0;  // 定义

void A::init() {
    a = 1001;
}

void A::test() {
    init();
    cout << a << endl;
}


int main(void)
{

    // using namespace A;
    A::test();

    return 0;
}

